<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script>
		var age=18;
		if(age>=18){
			console.log("成年人");
		}else{
			console.log("未成年人");
		}
		
		var flag=age>=18?true:false;
		console.log("flag="+flag);
	</script>
</html>
